package com.feihao.zhou.dmeo02_IO;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileCopyTest {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("H:\\自动化测试资料.zip");
        FileOutputStream fos = new FileOutputStream("G:\\u\\测试资料.zip");

        //读文件：
        byte[] bytes = new byte[1024];
        int len;
        while ((len = fis.read(bytes)) != -1) {
            fos.write(bytes, 0, len);
        }
        fis.close();
        fos.close();
    }
}
